package ai.mspbots.service.snapshot.message;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class SpringRabbitListener {

    private static final Logger logger = LoggerFactory.getLogger(SpringRabbitListener.class);

    @RabbitListener(queues = "ms.apm.queue")
    public void listenSimpleQueueMessage(String msg) throws InterruptedException {
        logger.info("ms.apm.queue接收到消息：【 {} 】", msg);
    }
}